<?php

var_dump(abs('-90px'));
var_dump(round(56.78));
var_dump(floor(56.78));
var_dump(ceil(56.78));
var_dump(max([45,34,3,2,2,2]));
var_dump(min([45,34,3,2,2,2]));
var_dump(intval(45.56));
var_dump(rand(1,10));
var_dump(mt_rand(1,10));
var_dump(pow(1024,2));


function rand_num_get($start=1,$end=47,$length=7)
{
	$arr = [];

	for ($i=1; $i <=$length ; $i++) { 
		
		$num = mt_rand($start,$end);

		if(in_array($num,$arr)){
			$i--;
		}else{
			$arr[] = $num;
		}
	}

	return $arr;
}

$res = rand_num_get(100,200,5);

var_dump($res);